<template>
  <div class="navBar-box">
    <div class="logoBackground">
      <div class="logoBox">
        <i class="iconfont logo">&#xe617;</i>
        <span class="logoText" style="marginLeft:5px">网抑云音乐</span>
      </div>
      <div class="btnBox">
        <button class="dowloadBtn">下载APP</button>
      </div>
    </div>
    <!-- <div class="navBar">
      <router-link to="/">推荐音乐</router-link>
      <router-link to="/hotSon">热歌榜</router-link>
      <router-link to="/Search">搜索</router-link>
    </div> -->
    <div class="toggleBox">
      <router-link to="/">推荐音乐</router-link>
      <router-link to="/hotSong">热歌榜</router-link>
      <router-link to="/search">搜索</router-link>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  }
};
</script>

<style lang="less" scoped>
@reds: #d43c33;
@boxHeight: 85px;

.toggleBox {
  height: 40px;
  position: relative;
  display: flex;
  justify-content: space-around;
  line-height: 40px;
  &::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    box-shadow: 1px 1px 1px#ccc;
    // background-color: #ccc;
  }
  a {
    // display: inline-block;
    color: black;
    height: 100%;
  }
  .myActive {
    position: relative;
    color: @reds;
    &::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      border-bottom: 3px solid @reds;
    }
  }
}
.btnBox {
  height: 40px;
}
.logoBox {
  line-height: @boxHeight;
}
.dowloadBtn {
  width: 100px;
  height: 35px;
  border-radius: 45px;
  background-color: #fff;
  outline: 1px solid transparent;
  border: none;
  color: @reds;
}
.logo,
.logoText {
  font-size: 25px;
  color: white;
}
.logoText {
  font-family: cursive;
}
.logoBackground {
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: @boxHeight;
  background: @reds;
}
img {
  display: block;
  width: 175px;
  height: 100%;
}
</style>